package com.zengzhuo.core.utils;

/**
 * TODO
 *
 * @author zhuo.zeng
 * @version 1.0
 * @date 2021/9/29 8:50
 */
public class ThreadUtil {

    /**
     * 获取当前线程名称
     */
    public static String getCurThreadName() {
        return Thread.currentThread().getName();
    }

    /**
     * 获取当前线程ID
     */
    public static long getCurThreadId() {
        return Thread.currentThread().getId();
    }

    /**
     * 获取当前线程
     */
    public static Thread getCurThread() {
        return Thread.currentThread();
    }
}
